#!/bin/bash
# 一次性启动所有节点和脚本

# 1. Orbbec 相机
#gnome-terminal -- bash -c "roslaunch orbbec_camera gemini_330_series.launch; exec bash"
#sleep 5
# 2. 深度检测 Python 脚本
#gnome-terminal -- bash -c "rosrun iq_gnc 717depth_detect_pt; exec bash"
sleep 5
# 3. MAVROS
gnome-terminal -- bash -c "roslaunch mavros apm.launch; exec bash"
sleep 5
# 4. 设置 mavsys 频率
gnome-terminal -- bash -c "rosrun mavros mavsys rate --all 10; exec bash"
sleep 5
# 5. 你的 C++ 节点
#gnome-terminal -- bash -c "rosrun iq_gnc 915testsave; exec bash"
sleep 5
# 6. 舵机控制脚本
gnome-terminal -- bash -c "rosrun iq_gnc servo.py; exec bash"
#gnome-terminal -- bash -c "rosrun iq_gnc 202586Secondflight; exec bash"
